/**
 * Created by 小敏哥 on 2017/3/23.
 */
import React, {Component} from 'react';
import IconText from '../calculatorOfYearlyCheck/iconText';
import style from './processImageList.scss';

class ProcessImageList extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return <div className={style.container}>
            <h1>{this.props.data.title}</h1>
            <div className={style.imageList}>
                {
                    this.props.data.content.map((item,i)=>{
                        return <img  key={'ProcessImageListImg'+i} src={item.imgUrl}/>
                    })
                }
            </div>
            <div className={style.textList}>
                {
                    this.props.data.content.map((item,i)=>{
                        return <span key={'ProcessImageListText'+i}>{item.text}</span>
                    })
                }
            </div>
        </div>
    }
}

export default ProcessImageList